<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('clue_crm_infos', function (Blueprint $table) {
            $table->unsignedBigInteger('clue_id')->index();
            $table->integer('status')->default(0);
            $table->integer('sys_status')->default(0);
            $table->text('msg')->nullable();
            $table->string('archive_media')->nullable();
            $table->string('archive_by')->nullable();
            $table->dateTime('archive_date')->nullable();
            $table->json('info')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('clue_crm_infos');
    }
};
